package com.mnnu.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data  //需要getter和setter方法
@Component  //需要将其放入IOC容器
@ConfigurationProperties(prefix = "aliyun.oss")  //完成属性的自动注入 注入application.yml中的属性值
public class AliOSSProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
